Download esp32/level1/humidity_sensor_basic/src/main_esp.cpp from eunzee/PCEval: direct link, hf CLI and curl.
- Browser
- Download file 364 Bytes
-
https://huggingface.co/datasets/eunzee/PCEval/resolve/main/esp32/level1/humidity_sensor_basic/src/main_esp.cpp
- Command line
-
hf download hf://datasets/eunzee/PCEval/esp32/level1/humidity_sensor_basic/src/main_esp.cpp
-
curl -L -o main_esp.cpp https://huggingface.co/datasets/eunzee/PCEval/resolve/main/esp32/level1/humidity_sensor_basic/src/main_esp.cpp
364 Bytes
| /** | |
| Read the humidity sensor value | |
| 03 MAY 2025 by Blind Author | |
| */ | |
| DHT dht(DHTPIN, DHTTYPE); | |
| void setup() { | |
| Serial.begin(9600); | |
| dht.begin(); | |
| } | |
| void loop() { | |
| float humidity = dht.readHumidity(); | |
| Serial.print("Humidity: "); | |
| Serial.println(humidity); | |
| delay(1000); | |
| } |