diff --git a/send_and_blink/send_and_blink.ino b/send_and_blink/send_and_blink.ino index 70ed044..f5951f7 100644 --- a/send_and_blink/send_and_blink.ino +++ b/send_and_blink/send_and_blink.ino @@ -115,10 +115,9 @@ int readLoudness() return analogRead(LOUDNESS_SENSOR); } -float readLight() +int readLight() { - int sensorValue = analogRead(LIGHT_SENSOR); - return (float)(1023-sensorValue)*10/sensorValue; + return analogRead(LIGHT_SENSOR); } void setupWater() {