Commit 3a65f942 by karrku

Update LihtneTMP36

parent 7f209ced
Showing with 1 additions and 1 deletions
...@@ -14,7 +14,7 @@ void loop() { ...@@ -14,7 +14,7 @@ void loop() {
int reading = analogRead(serialpin); int reading = analogRead(serialpin);
// Convert the reading into voltage: // Convert the reading into voltage:
float voltage = (reading * 5) / 1024; float voltage = (reading * 5000) / 1024;
// Convert the voltage into the temperature in Celsius: // Convert the voltage into the temperature in Celsius:
float temperature = (voltage - 500)/10; float temperature = (voltage - 500)/10;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment