Quick start with R1BBIT

R1BBIT ESP32 Wi-Fi

Let’s write a script to work with the sensor

VAR H // Create variable H to store humidity
VAR TC // Create variable TC to store temperature in Celsius
VAR TF // Create variable TF to store temperature in Fahrenheit
DHT_INIT(TC,H,1000) // Initialize DHT sensor: write temperature to TC and humidity to H every 1000 ms
VARS_READ(TF,H) //Send selected variable values to the server for storage
WHILE (1) // Infinite loop
TF=TC*9/4+32 // Convert Celsius to Fahrenheit (TC → TF)
PRINT “TEMPERATURE:”, TF,”°F” // Display temperature in °F
PRINT “HUMIDITY: “, H,”%” // Display humidity in %
PAUSE 1000 // Wait 1000 ms (1 second)
WEND // End of loop

Let’s add a few widgets

Go to: Widgets

Server

Go to: Cloud

Use your email and password.

And you can view temperature and humidity values from anywhere in the world.

×
100%