commit
e5dfd977ad
1 changed files with 1 additions and 8 deletions
|
@ -127,14 +127,7 @@ int readLoudness()
|
||||||
int readLight()
|
int readLight()
|
||||||
{
|
{
|
||||||
int sensorValue = analogRead(LIGHT_SENSOR);
|
int sensorValue = analogRead(LIGHT_SENSOR);
|
||||||
|
return map(sensorValue, 11, 27333, 0, 413);
|
||||||
return sensorValue;
|
|
||||||
|
|
||||||
return map(sensorValue, 1000, 200000, 1, 100);
|
|
||||||
// return (float)(sensorValue)*10/sensorValue;
|
|
||||||
// return (float)(1023-sensorValue)*10/sensorValue;
|
|
||||||
// Not a great value
|
|
||||||
// return analogRead(LIGHT_SENSOR) / 1000;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void setupWater() {
|
void setupWater() {
|
||||||
|
|
Loading…
Reference in a new issue