#include “LiquidCrystal.h” ajout de la librairie LiquidCrystal lcd(12,11,5,4,3,2); int mq3_analogPin = A0; connected to the output pin of MQ3 int mq3_value=0; void setup() {
Serial.begin(9600); // open serial at 9600 bps
lcd.begin(8,2);
int mq3_value = 0; mq3_value=analogRead(mq3_analogPin); lcd.write(“Taux d'alcool :”);
}
void loop() { lcd.setCursor(0, 1); mq3_value=analogRead(mq3_analogPin); lcd.print(mq3_value); delay(2000); }