admin 發表於 2016-11-27 12:24:27

MQ-131 臭氧感測器







int sensorValue;
void setup()
{
Serial.begin(9600);      // sets the serial port to 9600
}
void loop()
{
sensorValue = analogRead(0);       // read analog input pin 0
Serial.println(sensorValue, DEC);// prints the value read
delay(100);                        // wait 100ms for next reading
}

頁: [1]
查看完整版本: MQ-131 臭氧感測器