correct pin for dht22

This commit is contained in:
Lukas Heiligenbrunner 2020-10-20 21:15:18 +02:00
parent 7f1bf05af2
commit 7496b273db
2 changed files with 9 additions and 9 deletions

View File

@ -9,7 +9,7 @@
class Temperature { class Temperature {
public: public:
Temperature() : dht(4, DHT22){}; Temperature() : dht(2, DHT22){};
/** /**
* initialize the temperature sensor * initialize the temperature sensor

View File

@ -141,14 +141,14 @@ void setup() {
digitalWrite(SchuetzPin, LOW); //pumpe anfangs sofort abschalten digitalWrite(SchuetzPin, LOW); //pumpe anfangs sofort abschalten
digitalWrite(LuefterPin, LOW); digitalWrite(LuefterPin, LOW);
delay(5000); // delay(5000);
digitalWrite(LuefterPin, HIGH); // digitalWrite(LuefterPin, HIGH);
digitalWrite(SchuetzPin, HIGH); // digitalWrite(SchuetzPin, HIGH);
delay(2000); // delay(2000);
digitalWrite(LuefterPin, LOW); // digitalWrite(LuefterPin, LOW);
digitalWrite(SchuetzPin, LOW); // digitalWrite(SchuetzPin, LOW);
//
delay(9999999); // delay(9999999);
pinMode(WasserSensorPin, INPUT); pinMode(WasserSensorPin, INPUT);
pinMode(DruckSensorPin, INPUT); pinMode(DruckSensorPin, INPUT);