diff --git a/main/main.ino b/main/main.ino index 2e5faa5..16275f8 100644 --- a/main/main.ino +++ b/main/main.ino @@ -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){