Code Arduino utilisé, dans le cadre du projet ARE 2015 capteur de gaz, pour acquérir une valeur de taux d'alcool via un capteur MQ-3.
void setup() {
// set up the LCD's number of columns and rows: lcd.begin(2, 16); // Print a message to the LCD.
}
void loop() {
// set the cursor to column 0, line 1
// (note: line 1 is the second row, since counting begins with 0):
lcd.print("Output MQ3:");
lcd.setCursor(0, 1);
lcd.print(mq3_analogPin);
delay(250);
}