correct pin for dht22
This commit is contained in:
parent
7f1bf05af2
commit
7496b273db
@ -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
|
||||||
|
16
src/main.cpp
16
src/main.cpp
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user