#include <dht.h>
const int DHT_PIN = 12;
const int PIR_PIN = 11;
const int TRIG_PIN = 10;
const int ECHO_PIN = 9;
void setup() {
Serial.begin(115200);
}
void loop() {
// have fun
}
Wiring demo
#include <dht.h>
const int DHT_PIN = 12;
const int PIR_PIN = 11;
const int TRIG_PIN = 10;
const int ECHO_PIN = 9;
void setup() {
Serial.begin(115200);
}
void loop() {
// have fun
}