How to connect 3x LM35 sensors to arduino Nano Please Help


hi everyone.

i have bought arduino nano , 3x lm35 sensor. , want make them work on 16x2 lcd display. have got 1 sensor work.

i have found stock code 1 sensor work. problem how other 2 work. sensor connected a0, a1, a2. here code

i hope can me

include
liquidcrystal lcd(12, 11, 5, 4, 3, 2); //digital pins connect lcd
const int inpin = 0; // a0 connect sensor
void setup()
{
lcd.begin(16,2);
}
void loop()
{
int value = analogread(inpin); // read value sensor
lcd.setcursor(0,1);
float millivolts = (value / 1024.0) * 5000;
float celsius = millivolts / 10;
lcd.clear();
lcd.setcursor(0,0);
lcd.print("bms");
lcd.setcursor(0,1);
lcd.print(celsius);
lcd.print("c");
lcd.setcursor(0,1);

delay(1000);
}

by learning how program mate ;) , starts reading. same goes forum, first read how use forum , use ;)


Arduino Forum > Using Arduino > Programming Questions > How to connect 3x LM35 sensors to arduino Nano Please Help


arduino

Comments

Popular posts from this blog

Help with codes to add 1 more shift register and add more to matrix LED

tcp client

Is there an HTML component in Flex 2.0?