Add HC SR501 PIR sensor support (#107)

This commit is contained in:
Florian authored and GitHub committed 2017-09-28 22:46:13 +02:00
1 parent c915ddfa48
commit ae408f62fd
4 files changed
+107 -1

No files matched your search

+6 -1
View File
@@ -183,7 +183,9 @@ void setup()
#ifdef ZgatewayRFM69
setupRFM69();
#endif
#ifdef ZsensorHCSR501
setupHCSR501();
#endif
}
#ifdef ESP8266
@@ -247,6 +249,9 @@ void loop()
#ifdef ZsensorDHT
MeasureTempAndHum(); //Addon to measure the temperature with a DHT
#endif
#ifdef ZsensorHCSR501
MeasureHCSR501();
#endif
#ifdef ZsensorADC
MeasureADC(); //Addon to measure the analog value of analog pin
#endif