Commit 7e29b5b4 authored by Nelso Jost's avatar Nelso Jost
Browse files

FIX: LDR return percentage now

parent de2d5ac5
......@@ -11,7 +11,7 @@
String read_LDR()
{
return String(1023 - analogRead(LDR_PIN));
return String(100/1023.0 - analogRead(LDR_PIN));
}
// === DHT22 SETUP =======================================
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment