fixed light
light sensor range now 0 to 100, and removed useless old formulae
This commit is contained in:
parent
a024adadd0
commit
d32f7a05ca
1 changed files with 0 additions and 7 deletions
|
@ -127,14 +127,7 @@ int readLoudness()
|
|||
int readLight()
|
||||
{
|
||||
int sensorValue = analogRead(LIGHT_SENSOR);
|
||||
|
||||
//return sensorValue;
|
||||
|
||||
return map(sensorValue, 11, 27333, 0, 413);
|
||||
// return (float)(sensorValue)*10/sensorValue;
|
||||
// return (float)(1023-sensorValue)*10/sensorValue;
|
||||
// Not a great value
|
||||
// return analogRead(LIGHT_SENSOR) / 1000;
|
||||
}
|
||||
|
||||
void setupWater() {
|
||||
|
|
Loading…
Reference in a new issue