Skip to content

Commit 62970b7

Browse files
committed
Update SIK_Circuit_4B-TemperatureSensor.ino
1 parent 48810f2 commit 62970b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SIK_Circuit_4B-TemperatureSensor/SIK_Circuit_4B-TemperatureSensor.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ void setup() {
2626

2727
void loop() {
2828

29-
voltage = analogRead(A0) * 0.004882814; //convert the analog reading, which varies from 0 to 1023, back to a voltage value from 0-5 volts
29+
voltage = analogRead(A0) * 0.004882813; //convert the analog reading, which varies from 0 to 1023, back to a voltage value from 0-5 volts
3030
degreesC = (voltage - 0.5) * 100.0; //convert the voltage to a temperature in degrees Celsius
3131
degreesF = degreesC * (9.0 / 5.0) + 32.0; //convert the voltage to a temperature in degrees Fahrenheit
3232

0 commit comments

Comments
 (0)