Sht20.checkSHT20() // Check SHT20 Sensorįloat humd = sht20.readHumidity() // Read Humidityįloat temp = sht20. * -SCL = A5 (use inline 330 ohm resistor if your board is 5V) * -SDA = A4 (use inline 330 ohm resistor if your board is 5V) ![]() * Open serial monitor at 9600 baud to see readings. * Uses the SHT20 library to display the current humidity and temperature. * This example demonstrates how to read the user registers to display resolution and other settings. * DFRobot's SHT20 Humidity And Temperature Sensor Module Thank you!Ĭan you please show the code that you used, I'm having some problems trying to use a library that was built for arduino, but I want to use it with teensy 3.6 I guess I wasn't sure how the resistors were set up with the Teensy for I2C. Here’s a summary of the most relevant specs of the DS18B20 temperature sensor: Communicates over one-wire bus communication. When using the ESP32 with the Arduino IDE, use the Wire. I got it working! Thank you all for your help in helping me solve my problem. With the ESP32 you can set almost any pin to have I2C capabilities, you just need to set that in your code.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |