From 21a77ca2d12ff844f00798b65c3c536427af32c4 Mon Sep 17 00:00:00 2001 From: StratosKarvounis Date: Mon, 25 Jan 2021 13:02:21 +0000 Subject: [PATCH] Update 'thermokrasia.ino' --- thermokrasia.ino | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/thermokrasia.ino b/thermokrasia.ino index 069512d..63af5f6 100644 --- a/thermokrasia.ino +++ b/thermokrasia.ino @@ -1,16 +1,14 @@ //TMP36 Pin Variables -int sensorPin = 0; //the analog pin the TMP36's Vout (sense) pin is connected to - //the resolution is 10 mV / degree centigrade with a - //500 mV offset to allow for negative temperatures +int sensorPin = 0; //sindesi stin analogiki porta 0 + /* * setup() - this function runs once when you turn your Arduino on - * We initialize the serial connection with the computer - */ + void setup() { Serial.begin(9600); //Start the serial connection with the computer - //to view the result open the serial monitor + } void loop() // run over and over again @@ -23,7 +21,8 @@ void loop() // run over and over again voltage /= 1024.0; // print out the voltage - Serial.print(voltage); Serial.println(" volts"); + Serial.print(voltage); +Serial.println(" volts"); // now print out the temperature float temperatureC = (voltage - 0.5) * 100 ; //converting from 10 mv per degree wit 500 mV offset