// Base of the code is from: http://www.learningaboutelectronics.com/Articles/LM335-temperature-sensor-circuit.php // Choose the analog pin used int analogPin= 0; // Setting baud rate void setup() { Serial.begin(9600); } // int for numeric data without decimals and float with decimals void loop() { int voltage = analogRead(analogPin); // converting celsius through kelvin float celsius = ((voltage/1024.0)*5000)/10-273.15; Serial.print(celsius); Serial.println(" degrees Celsius"); // This makes loop to start every 5 seconds delay(5000); }