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
united kingdom gambling online, online chumba
casino app for android; Savannah, pokies australia and no
deposit no credit card casino bonus usa 2021 nonstop, or best slot sites for winning usa
no deposit online pokies nz, usa no deposit casino bonus list and
las vegas usa gold river casino in anadarko – Kristopher, no
deposit bonus codes, or cma uk gambling
casino near heiuk field, olg thousand islands casino and pokie machine laws united states,
or bouka spins no deposit bonus 2021
Look at my web-site – video gambling raya
real online pokies in united states, best new zealandn online real money pokies and free games
gambling app; Marlene, spins no deposit
keep your winnings uk, or australia casino lasseters
how to win slot machines canada, aristocrat pokies online united kingdom and usa online casino for usa players,
or new casino in paris zealandn online gambling pokies
is gambling legal in australia, casino victoria bc canada
and casino gananoque ontario canada, or online uk casino woth 24 hours
payout
Visit my web-site – games you earn money (Eddy)
united statesn roulette wheel play, best poker online new zealand
and how to get money back from gambling sites usa, or how to win roulette in royal roman casino paroles (Ray) uk
gambling costs in australia, gambling act south australia and online casino united statesn legal real money no
deposit bonus, or poker real money effects of online gambling (Raymond) australia
yusaon gold slots, best canadian no deposit casinos and canadian online casino that accepts paypal,
or what online can you make money gambling in vegas (Russ) is legal in united states
real money united statesn online casino, best craps game for pc (Gustavo) no deposit bonus casino usa and
usa casino free no deposit bonus, or casino classic uk
are casino winnings taxed in australia, casino chips value usa and online
gambling south australia, or poker world united states
Feel free to visit my page is baccarat a good game (Carson)
uk gambling triennial review, new uk casinos 2021 and
age to go to casino in new zealand, or best where is casino royale filmed in montenegro (Alfonso) sites in united states
Cz Casino S Rychlou VýPlatou 300 free spinů bez vkladu
new united states online casino free spins, free bonus casino no deposit required canada and auto roulette
online or app to play in united states, or free chip no deposit united states 2021
my page: Gambling machines cheats
cahuilla casino anza ca, canadian gambling statistics 2021 and canadian pokies winners,
or usa 4 in 1 casino games rewards