/**
ESP32 + DHT22 Example for Wokwi
https://wokwi.com/arduino/projects/322410731508073042
*/
#include "DHTesp.h"
const int DHT_PIN = 15;
const int buzzerPIN = 13;
const int gLED = 23;
const int rLED = 4;
const int bLED = 2;
DHTesp dhtSensor;
void setup() {
pinMode(gLED, OUTPUT);
pinMode(rLED, OUTPUT);
pinMode(bLED, OUTPUT);
pinMode(buzzerPIN, OUTPUT);
dhtSensor.setup(DHT_PIN, DHTesp::DHT22);
}
void loop() {
if(t < 24)
{
else if (t < 32){
}
else {
(t <32)
}
}