![]() If(unter=122)//set 2 seconds as a detected dutyĪirqualitysensor.last_vol=airqualitysensor.first_vol Īirqualitysensor.first_vol=analogRead(A1) Serial.println("High pollution! Preventive measures should be taken immediately!") įloat temper = TH02.ReadTemperature() * 1.8 32 If (current_quality >= 0)// if a valid data returned. Serial.println("Grove - Sound Sensor Test.") Ĭurrent_quality=airqualitysensor.slope() Serial.println("TH02_dev is available.\n") Determine TH02_dev is available or not */ ![]() * Power up,delay 150ms,until voltage is stable / Serial.println(" TH02_dev demo by seeed studio\n") Could you take a look at my code and see what's wrong with it? Thanks in advance. Me, being new to code, would appreciate some assistance regarding this. ![]() When I try to upload my code to my Arduino Leonardo, it gives me a bunch of error messages. I created some code to program a pollution monitor that measures temperature/humidity, sound level, and air quality using the Seeed Grove Air Quality sensor v1.3, the Grove Sound Sensor, and the TH02 Sensor for Seeed Grove. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |