Temp Sensor AD22100 Connection and Temp Display on LCD using Arduino

This blog will demonstrate how to connect a temp sensor to an Arduino board and observe the value on serial monitor and display the temperature value on LCD display connected to Arduino. In this tutorial, I am using AD22100 which is manufactured by Analog Devices. AD22100 is a Voltage Output Temperature Sensor with Signal Conditioning. It is having 3 pins.

Before going further, I am assuming that you have already gone through the Arduino Basics and familiar with programming Arduino boards using Arduino IDE.

If not, go through my previous blogs Arduino Basics and LED Blinking on Arduino.

For connecting an LCD to Arduino Board, please go through this blog LCD Display

Making AD22100 connection on Arduino Board

Pin 1 (V+) of AD22100 should be connected to +5 v on Arduino Board.

Pin 2 (Vo) of AD22100 should be connected to Pin A1 on Arduino Board.

Pin 2 (GND) of AD22100 should be connected to GND on Arduino Board.

Program on Arduino Software

You can copy and paste whole program from here.

Compile it and Upload it on Arduino Board and observe the output on LCD and Serial monitor

//Program starts here

int val;
int tempPin =A1;


LiquidCrystal lcd(7,8,9,10,11,12);

void setup() {
// put your setup code here, to run once:

void loop() {
// put your main code here, to run repeatedly:
val = analogRead(tempPin);//AD22100 is connected at Pin A1
*For 25C, val comes as 900 that means
* 900 is corresponding to 1.9375 v
* Transfer Function is (V+/5)*(1.375 + 22.5 mv/degC * 25 degC),
* Read Datasheet of AD22100
float cel = ((((1.9375/900) * val) – 1.375)/22.5)*1000;
float farh = (cel*9)/5 + 32;

Serial.print(“TEMPRATURE = “);
lcd.print(“Temp = “);
lcd.print(” degC”);


//Program ends here

Explanation of program

Functions related to LCD library have already explained in previous blog.

I am explaining the things which are new to this blog.

In the setup() function, we open a serial communication with 9600 bps for seeing the data on Serial Monitor with Serial.begin(9600);

in the loop() function, using a new function called analogRead(#definedpin) reading the data received from that analog input which is output from pin 2 of AD22100 temp sensor.

Conversion of Analog value of temp reading to the deg C value is done using a transfer function which can be find out in the AD22100 Datasheet as written below.

Vout = (V+/5 V) × (1.375 V + 22.5 mV/°C × TA) and the same value is printed on the LCD display.

Increase the temp and observe the increased temp value on the LCD and serial monitor.

Demo of the Program

Here is the snapshot of the demo set up of AD22100 and LCD connection with Arduino.


Please look at the whole demonstration on Youtube here. ADXL22100 with Arduino.

-Signing Off, Arduino Novice

Please do follow my Blog and subscribe to my Youtube Channel for more demos and videos related to Arduino.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s