Added calculation of volt input

This commit is contained in:
Kevin Veen-Birkenbach 2020-05-12 18:11:35 +02:00
parent d89cac59cb
commit 6a81630826

View File

@ -144,7 +144,8 @@ String getJsonPir(void){
}
String getJsonLdr(void){
return "{\"relative\":\""+String(analogRead (pin_ldr))+"\"}";
float volt = 5.0 /1024.0 * analogRead (pin_ldr);
return "{\"input_volt\":\""+String(volt)+"\"}";
}
String getJsonIrLastRecieved(void){