Skip to content

Commit 8e17a2b

Browse files
committed
better calibration
1 parent fe52c7d commit 8e17a2b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,9 @@ void loop() {
138138
float heatIndex = temperatureSensor.computeHeatIndex(temperature, humidity, false);
139139
float uvIndex = analogRead(uvAnalogIn);
140140

141-
// integer index, divide by 100!
142-
uvIndex /= 100.0;
141+
// divide by 10: This value will depend on the
142+
// sensor and the library used, if any
143+
uvIndex /= 10.0;
143144

144145
// check whether reading was successful or not
145146
if (temperature == NAN || humidity == NAN) { // NAN means no available data

0 commit comments

Comments
 (0)