Skip to content

Instantly share code, notes, and snippets.

@sepfy
Created September 20, 2020 04:03
Show Gist options
  • Save sepfy/866177e2369990023266c494a7d65c40 to your computer and use it in GitHub Desktop.
Save sepfy/866177e2369990023266c494a7d65c40 to your computer and use it in GitHub Desktop.
echo "scale=2; -45 + 175*$(cat /sys/class/sensor/sht31/temperature)/65535" | bc
echo "scale=2; 100*$(cat /sys/class/sensor/sht31/humidity)/65535" | bc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment