Read Temperature & Humidity

Intermediate

Read the SHT40 temperature and humidity sensor built into the Beaver Board and display both values live on the OLED. Then use an if block to turn on the RED LED whenever the temperature gets too warm.

20 min5 steps
SHT40TemperatureHumiditySensorOLEDIntermediate
0 of 5 steps

Step 1 of 5

Connect your board

Power on your Beaver Board — the OLED will show a PIN code. Click Connect in the toolbar, choose Connect via Bluetooth, and select your board. If it's your first time, enter the PIN shown on the screen.

The SHT40 temperature and humidity sensor is built into the board on GP6 (SDA) and GP7 (SCL) — no extra wiring needed.

The SHT40 measures both temperature in degrees Celsius and relative humidity as a percentage. Both values are read over the same I2C connection.