Hello,
I’m starting to publish some experiments that I do with Arduino UNO/Nano, sensors and other stuffs. Today I created a thermometer with LM35 sensor.
The LM35 sensor is a temperature sensor, it will variate 10mV/Celsius. It pins can be seen on image (pay attention, it is a bottom look)

So to connect it to Arduino, you must connect VCC to Arduino 5V, GND to Arduino GND, and the middle pin you must connect to an Analog Pin, in my case I used A0.
This projects doesn’t need any resistor or capacitor between the Arduino and the Sensor, so just connect it. The Arduino ADC has a precision of 10 bits, so in this case 5V / 2^10 = 5V / 1024, so 0.0049 is our factor. To get the temperature in Celsius, we get the value and calculate like this:
Temperature = (pin * 0.0049)*100
But why multiply by 100? PIN * 0.0049 will give the volts on port, if we multiply it by 1000 we will have millivolts on port, the sensor varies 10mV/C so we need to divide it by 10 to get the temperature. On mathematics multiply by 1000 and divide by 10 is the same as multiplying by 100. Understand? [Add on 12/12]
And to have it on Fahrenheit, we need to make a conversion
TemperatureF = (Temperature * 1.8) + 32.
The arduino code that I used is:
[code lang=”c”]
int analogPin = 0;
int readValue = 0;
float temperature = 0;
float temperatureF = 0;
void setup() {
Serial.begin(9600);
}
void loop() {
readValue = analogRead(analogPin);
//Serial.println(readValue);
temperature = (readValue * 0.0049);
temperature = temperature * 100;
temperatureF = (temperature * 1.8) + 32;
Serial.print(“Temperature: “);
Serial.print(temperature);
Serial.print(“C “);
Serial.print(temperatureF);
Serial.println(“F”);
delay(1000);
}
[/code]
Hope you like it,
Matheus
References:
LM35 Datasheet
Arduino analog Read
nettikasinot laillisuus
my website … turvallisin mobiili kasino
spilleautomater dansk casino uden nemid (Dora) casino
visa kasinot suomi
Also visit my web-site Revolut Pikakasino (https://Www.Belmonstays.Com/)
10 ilmaiskierrosta rekisteröitymällä nettikasino
My blog post … uudet tervetuliaisbonus kasino [Sheldon]
live roulette app bedste casino midtjylland (http://www.ninfotech.in)
beste bonusbedingungen sportwetten
Here is my webpage; basketball wetten anbieter aus bewertungskriterien? (Dyan)
video poker med live dealer bedste online roulette casino (Floyd)
pferderennen münchen basketball Pro A wetten
casino Indbetaling med klarna; https://drybrush-Studio.com/hvordan-man-vinder-pa-den-elektroniske-kasino-internettet-roulette/, velkomstbonus
op til 500 kr
mobilregning slots samsung casino [Ericka] app
visa Online Casino Bonus Uden Indskud uden nemid
hvilket online casino er Bedst (https://willsathome.fgd-Sites3.co.uk) med anbefalet
casino Med vip bonus depositum 50 euro
hvilken online hurtig udbetaling casino mobilepay, Janice, er bedst
anbefalede casinoer dansk licens
My blog post: Bedste Casino For Nybegyndere
casino spillesider med spins gratis 400% bonus
best gambling websites uk, new zealandn original slot online free and do you
have to pay tax on Casino card game online free
winnings in canada, or uk gambling license
conditions
best gambling website canada, best online Who owns The stratosphere Casino new
zealand wise gamblers and is bingo gambling in canada, or paysafe
casinos uk