2023-04-17から1日間の記事一覧
#define pwmPin 22 // Change this to the appropriate pin connected to the MH-Z19 PWM output int prevVal = LOW; long th, tl, h, l, ppm; void setup() { Serial.begin(115200); pinMode(pwmPin, INPUT); Serial.println("MH-Z19 is warming up now.");…