/* picmicrolab.com *************************************************************************************************************** LM75A Digital Temperature Sensor with Arduino UNO */ #include #include M2M_LM75A lm75a; // initialize the library by associating any needed LCD interface pin // with the arduino pin number it is connected to const int rs = 12, en = 11, d4 = 5, d5 = 4, d6 = 3, d7 = 2; LiquidCrystal lcd(rs, en, d4, d5, d6, d7); void setup() { // set up the LCD's number of columns and rows: lcd.begin(16, 2); //Init LM75A Temp Sensor lm75a.begin(); } void loop() { lcd.display(); lcd.setCursor(0, 0); // top left lcd.print(lm75a.getTemperature()); lcd.print(" C"); delay(1000); }