Return raw light value
This commit is contained in:
parent
7e05829dcd
commit
2015ca59b1
1 changed files with 2 additions and 3 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue