troubleshooting

This commit is contained in:
Marcus 2023-08-08 22:25:27 +02:00
parent cfd6b2e289
commit d03f00e529
2 changed files with 3 additions and 3 deletions

View file

@ -1 +0,0 @@
{"1":{"temp":10.375,"state":false},"2":{"temp":-127,"state":false}}

View file

@ -80,6 +80,8 @@ void loop() {
sensors.requestTemperatures(); sensors.requestTemperatures();
tempSensor1 = sensors.getTempC(addrSensor1); tempSensor1 = sensors.getTempC(addrSensor1);
tempSensor2 = sensors.getTempC(addrSensor2);
if(tempSensor1 > HTemp1) { if(tempSensor1 > HTemp1) {
digitalWrite(MOSFET1, HIGH); digitalWrite(MOSFET1, HIGH);
fetState1 = 1; fetState1 = 1;
@ -88,7 +90,6 @@ void loop() {
fetState1 = 0; fetState1 = 0;
} }
tempSensor2 = sensors.getTempC(addrSensor2);
if(tempSensor2 > HTemp2) { if(tempSensor2 > HTemp2) {
digitalWrite(MOSFET2, HIGH); digitalWrite(MOSFET2, HIGH);
fetState2 = 1; fetState2 = 1;