>>> Join Us in the Fight Against Air Pollution

AirGradient Forum

Sensor on PM2 port on new AirGradient Open Air not reporting data

I have a new AirGradient Open Air with v1.1 main board.

It’s not reporting data and I suspect it’s an issue with the PM2 sensor port (or firmware).

It showed an initial connection to the dashboard when I set it up, but it never reported any data (I assume because no PM2 data). To troubleshoot, I flashed several different ESPHome configurations. The PM2 sensor never reported data with any of them.

One thread suggested the different arduino versus esp-idf toolkits might make a difference for the 2nd UART, but testing with both revealed no difference in behavior (PM2 never reports data).

I do not think either the sensors or cables are fault:

  1. Both sensors, when plugged into PM1, will work and report data.
  2. I tested both combinations of sensors and cross-over cables on the PM1 port. Both combinations functioned normally.

Something is up either with the PM2 port hardware or the firmware. PM1 and PM2 both seem to power the sensors, as I hear fan noise on both sensors, but never get any data from PM2 (with either sensor).

  1. Stock firmware: connects to dashboard, but never shows any data.
  2. ESPHome with various configurations: can reliably get data from PM1 port but never anything from PM2 port.

I can’t see any issues with the mainboard. Solder connections and traces look good by an amateur’s examination.

Troubleshooting recommendations?

Log excerpt from ESPHome:

17:41:13 [D] [sensor:094] 'Outdoor PM<1.0µm Concentration': Sending state nan µg/m³ with 0 decimals of accuracy
17:41:37 [D] [sensor:094] 'Outdoor Relative Humidity': Sending state nan % with 1 decimals of accuracy
17:41:38 [D] [sensor:094] 'AQI: Minutes Remaining': Sending state 1076.00000 minutes with 0 decimals of accuracy
17:41:38 [D] [sensor:094] 'NowCast: Minutes Remaining': Sending state 716.00000 minutes with 0 decimals of accuracy
17:41:47 [D] [sensor:094] 'Outdoor PM>2.5µm Count': Sending state nan /dL with 0 decimals of accuracy
17:41:49 [D] [sensor:094] 'Uptime Sensor': Sending state 167.75000 s with 0 decimals of accuracy
17:41:52 [D] [sensor:094] 'Outdoor Temperature': Sending state nan °C with 1 decimals of accuracy
17:41:52 [D] [sensor:094] 'Outdoor PM>0.5µm Count': Sending state nan /dL with 0 decimals of accuracy
17:41:53 [D] [sensor:094] 'Wifi Strength': Sending state -45.00000 dBm with 0 decimals of accuracy
17:41:54 [D] [sensor:094] 'Outdoor PM<2.5µm Concentration': Sending state nan µg/m³ with 0 decimals of accuracy
17:42:01 [W] [pmsx003:150] PMSX003 length 57856 doesn't match. Are you using the correct PMSX003 type?
17:42:37 [D] [sensor:094] 'Outdoor Relative Humidity': Sending state nan % with 1 decimals of accuracy
17:42:38 [D] [sensor:094] 'AQI: Minutes Remaining': Sending state 1075.00000 minutes with 0 decimals of accuracy
17:42:38 [D] [sensor:094] 'NowCast: Minutes Remaining': Sending state 715.00000 minutes with 0 decimals of accuracy
17:42:49 [D] [sensor:094] 'Uptime Sensor': Sending state 227.75000 s with 0 decimals of accuracy
17:42:52 [D] [sensor:094] 'Outdoor Temperature': Sending state nan °C with 1 decimals of accuracy
17:42:53 [D] [sensor:094] 'Wifi Strength': Sending state -42.00000 dBm with 0 decimals of accuracy
17:42:56 [W] [component:204] Component interval took a long time for an operation (0.98 s).
17:42:56 [W] [component:205] Components should block for at most 20-30ms.
17:42:56 [W] [component:205] Components should block for at most 20-30ms.

Please send some pictures of you assembly. Especially around the cable and plugs.

Also ensure you have really plugged the plugs in firm enough.

Do you hear the fan spinning in the PM sensors?

1 Like

Also ensure you have really plugged the plugs in firm enough.

Yes, the plugs on both ends are seated.

I can confirm because both sensors work fine when plugged into the PM1 port. It’s only the PM2 port with an issue.

Do you hear the fan spinning in the PM sensors?

Yes, both sensor fans are audible when connected to either PM1 or PM2. Never any data from PM2 port, though.

(splitting these out over multiple posts because, “new users can only put one embedded media item in a post.”)

This is indeed strange. It could be a connection issue on the esp32 pins which are not visible from outside.

Can you please contact our support with your previous order number and we will send you a new board.

1 Like

The new board came today. Started reporting immediately after getting things set up, the replacement board resolved the issue.

If you want the old one back or if I can otherwise provide you with any information let me know.

Appreciated!

1 Like

Great that fixes the issue. You can keep the board. You could probably build a second one with only one pm module.

I appear to be having this exact issue with a new AirGradient Open Air. I’m using the ajfriesen ESPHome setup configuration. Because the second sensor is not being read, the average of the two that is reported to HomeAssistant is nan. I have copied an exerpt of this happening from my log file from running it overnight, which shows that only the sensor with (1) trailing it reports data. Should I try alternative power sources? I am using a stock Apple iPhone wall adapter. Are there any other steps I should try to get it working? I can definitely hear fans inside. This was pre-assembled.

[22:20:22][C][wifi_signal.sensor:009]:   Accuracy Decimals: 0
[22:20:30][D][sensor:094]: 'Uptime Sensor': Sending state 32.64000 s with 0 decimals of accuracy
[22:20:32][D][sensor:094]: 'Wifi Strength': Sending state -68.00000 dBm with 0 decimals of accuracy
[22:20:39][D][sensor:094]: 'AQI: Minutes Remaining': Sending state 1078.00000 minutes with 0 decimals of accuracy
[22:20:39][D][sensor:094]: 'NowCast: Minutes Remaining': Sending state 718.00000 minutes with 0 decimals of accuracy
[22:20:45][D][sensor:094]: 'Outdoor Air Temperature': Sending state nan °C with 1 decimals of accuracy
[22:20:48][D][sensor:094]: 'Outdoor Air Relative Humidity': Sending state nan % with 1 decimals of accuracy
[22:21:30][D][sensor:094]: 'Uptime Sensor': Sending state 92.63800 s with 0 decimals of accuracy
[22:21:32][D][sensor:094]: 'Wifi Strength': Sending state -66.00000 dBm with 0 decimals of accuracy
[22:21:34][D][sensor:094]: 'Outdoor Air Particulate Matter >0.3µm Count': Sending state nan /dL with 0 decimals of accuracy
[22:21:39][D][sensor:094]: 'AQI: Minutes Remaining': Sending state 1077.00000 minutes with 0 decimals of accuracy
[22:21:39][D][sensor:094]: 'NowCast: Minutes Remaining': Sending state 717.00000 minutes with 0 decimals of accuracy
[22:21:44][D][sensor:094]: 'Outdoor Air Particulate Matter >1.0µm Count': Sending state nan /dL with 0 decimals of accuracy
[22:21:45][D][sensor:094]: 'Outdoor Air Temperature': Sending state nan °C with 1 decimals of accuracy
[22:21:48][D][sensor:094]: 'Outdoor Air Relative Humidity': Sending state nan % with 1 decimals of accuracy
[22:21:56][D][sensor:094]: 'Outdoor Air Particulate Matter <2.5µm Concentration': Sending state nan µg/m³ with 0 decimals of accuracy
[22:22:05][D][sensor:094]: 'Outdoor Air Particulate Matter <1.0µm Concentration': Sending state nan µg/m³ with 0 decimals of accuracy
[22:22:06][D][sensor:094]: 'Outdoor Air Particulate Matter >2.5µm Count': Sending state nan /dL with 0 decimals of accuracy
[22:22:06][D][sensor:094]: 'Outdoor Air Particulate Matter >0.5µm Count': Sending state nan /dL with 0 decimals of accuracy
[22:22:26][D][sensor:094]: 'Outdoor Air Particulate Matter <10.0µm Concentration': Sending state nan µg/m³ with 0 decimals of accuracy
[22:22:30][D][sensor:094]: 'Uptime Sensor': Sending state 152.63300 s with 0 decimals of accuracy
[22:22:32][D][sensor:094]: 'Wifi Strength': Sending state -67.00000 dBm with 0 decimals of accuracy
[22:22:39][D][sensor:094]: 'AQI: Minutes Remaining': Sending state 1076.00000 minutes with 0 decimals of accuracy
[22:22:39][D][sensor:094]: 'NowCast: Minutes Remaining': Sending state 716.00000 minutes with 0 decimals of accuracy
[22:22:45][D][sensor:094]: 'Outdoor Air Temperature': Sending state nan °C with 1 decimals of accuracy
[22:22:48][D][sensor:094]: 'Outdoor Air Relative Humidity': Sending state nan % with 1 decimals of accuracy
[22:22:57][D][pmsx003:288]: Got PM1.0 Concentration: 4 µg/m^3, PM2.5 Concentration 10 µg/m^3, PM10.0 Concentration: 10 µg/m^3, Temperature: 4.7°C, Humidity: 35.6%
[22:22:57][D][sensor:094]: 'Outdoor Air Particulate Matter <1.0µm Concentration (1)': Sending state 4.00000 µg/m³ with 0 decimals of accuracy
[22:22:57][D][sensor:094]: 'Outdoor Air Particulate Matter <2.5µm Concentration (1)': Sending state 10.00000 µg/m³ with 0 decimals of accuracy
[22:22:57][D][sensor:094]: 'Outdoor Air Particulate Matter <10.0µm Concentration (1)': Sending state 10.00000 µg/m³ with 0 decimals of accuracy
[22:22:57][D][sensor:094]: 'Outdoor Air Particulate Matter >0.3µm Count (1)': Sending state 783.00000 /dL with 0 decimals of accuracy
[22:22:57][D][sensor:094]: 'Outdoor Air Particulate Matter >0.5µm Count (1)': Sending state 217.00000 /dL with 0 decimals of accuracy
[22:22:57][D][sensor:094]: 'Outdoor Air Particulate Matter >1.0µm Count (1)': Sending state 43.00000 /dL with 0 decimals of accuracy
[22:22:57][D][sensor:094]: 'Outdoor Air Particulate Matter >2.5µm Count (1)': Sending state 3.00000 /dL with 0 decimals of accuracy
[22:22:57][D][sensor:094]: 'Outdoor Air Temperature (1)': Sending state 4.70000 °C with 1 decimals of accuracy
[22:22:57][D][sensor:094]: 'Outdoor Air Relative Humidity (1)': Sending state 35.60000 % with 1 decimals of accuracy
[22:23:30][D][sensor:094]: 'Uptime Sensor': Sending state 212.63300 s with 0 decimals of accuracy
[22:23:32][D][sensor:094]: 'Wifi Strength': Sending state -69.00000 dBm with 0 decimals of accuracy
[22:23:39][D][sensor:094]: 'AQI: Minutes Remaining': Sending state 1075.00000 minutes with 0 decimals of accuracy
[22:23:39][D][sensor:094]: 'NowCast: Minutes Remaining': Sending state 715.00000 minutes with 0 decimals of accuracy
[22:23:45][D][sensor:094]: 'Outdoor Air Temperature': Sending state nan °C with 1 decimals of accuracy
[22:23:48][D][sensor:094]: 'Outdoor Air Relative Humidity': Sending state nan % with 1 decimals of accuracy
[22:24:30][D][sensor:094]: 'Uptime Sensor': Sending state 272.63699 s with 0 decimals of accuracy
[22:24:32][D][sensor:094]: 'Wifi Strength': Sending state -68.00000 dBm with 0 decimals of accuracy
[22:24:34][D][sensor:094]: 'Outdoor Air Particulate Matter >0.3µm Count': Sending state nan /dL with 0 decimals of accuracy
[22:24:39][D][sensor:094]: 'AQI: Minutes Remaining': Sending state 1074.00000 minutes with 0 decimals of accuracy
[22:24:39][D][sensor:094]: 'NowCast: Minutes Remaining': Sending state 714.00000 minutes with 0 decimals of accuracy
[22:24:44][D][sensor:094]: 'Outdoor Air Particulate Matter >1.0µm Count': Sending state nan /dL with 0 decimals of accuracy
[22:24:45][D][sensor:094]: 'Outdoor Air Temperature': Sending state nan °C with 1 decimals of accuracy
[22:24:48][D][sensor:094]: 'Outdoor Air Relative Humidity': Sending state nan % with 1 decimals of accuracy
[22:24:56][D][sensor:094]: 'Outdoor Air Particulate Matter <2.5µm Concentration': Sending state nan µg/m³ with 0 decimals of accuracy
[22:24:57][I][ota:117]: Boot seems successful, resetting boot loop counter.
[22:24:57][D][esp32.preferences:114]: Saving 1 preferences to flash...
[22:24:57][D][esp32.preferences:143]: Saving 1 preferences to flash: 0 cached, 1 written, 0 failed
[22:25:05][D][sensor:094]: 'Outdoor Air Particulate Matter <1.0µm Concentration': Sending state nan µg/m³ with 0 decimals of accuracy
[22:25:06][D][sensor:094]: 'Outdoor Air Particulate Matter >2.5µm Count': Sending state nan /dL with 0 decimals of accuracy
[22:25:06][D][sensor:094]: 'Outdoor Air Particulate Matter >0.5µm Count': Sending state nan /dL with 0 decimals of accuracy
[22:25:26][D][sensor:094]: 'Outdoor Air Particulate Matter <10.0µm Concentration': Sending state nan µg/m³ with 0 decimals of accuracy
[22:25:30][D][sensor:094]: 'Uptime Sensor': Sending state 332.64001 s with 0 decimals of accuracy
[22:25:32][D][sensor:094]: 'Wifi Strength': Sending state -68.00000 dBm with 0 decimals of accuracy
[22:25:39][D][sensor:094]: 'AQI: Minutes Remaining': Sending state 1073.00000 minutes with 0 decimals of accuracy
[22:25:39][D][sensor:094]: 'NowCast: Minutes Remaining': Sending state 713.00000 minutes with 0 decimals of accuracy
[22:25:45][D][sensor:094]: 'Outdoor Air Temperature': Sending state nan °C with 1 decimals of accuracy
[22:25:48][D][sensor:094]: 'Outdoor Air Relative Humidity': Sending state nan % with 1 decimals of accuracy
[22:25:57][D][pmsx003:288]: Got PM1.0 Concentration: 4 µg/m^3, PM2.5 Concentration 9 µg/m^3, PM10.0 Concentration: 10 µg/m^3, Temperature: 4.6°C, Humidity: 35.8%
[22:25:57][D][sensor:094]: 'Outdoor Air Particulate Matter <1.0µm Concentration (1)': Sending state 4.00000 µg/m³ with 0 decimals of accuracy
[22:25:57][D][sensor:094]: 'Outdoor Air Particulate Matter <2.5µm Concentration (1)': Sending state 9.00000 µg/m³ with 0 decimals of accuracy
[22:25:57][D][sensor:094]: 'Outdoor Air Particulate Matter <10.0µm Concentration (1)': Sending state 10.00000 µg/m³ with 0 decimals of accuracy
[22:25:57][D][sensor:094]: 'Outdoor Air Particulate Matter >0.3µm Count (1)': Sending state 660.00000 /dL with 0 decimals of accuracy
[22:25:57][D][sensor:094]: 'Outdoor Air Particulate Matter >0.5µm Count (1)': Sending state 200.00000 /dL with 0 decimals of accuracy
[22:25:57][D][sensor:094]: 'Outdoor Air Particulate Matter >1.0µm Count (1)': Sending state 37.00000 /dL with 0 decimals of accuracy
[22:25:57][D][sensor:094]: 'Outdoor Air Particulate Matter >2.5µm Count (1)': Sending state 6.00000 /dL with 0 decimals of accuracy
[22:25:57][D][sensor:094]: 'Outdoor Air Temperature (1)': Sending state 4.60000 °C with 1 decimals of accuracy
[22:25:57][D][sensor:094]: 'Outdoor Air Relative Humidity (1)': Sending state 35.80000 % with 1 decimals of accuracy
[22:26:30][D][sensor:094]: 'Uptime Sensor': Sending state 392.63800 s with 0 decimals of accuracy
[22:26:32][D][sensor:094]: 'Wifi Strength': Sending state -68.00000 dBm with 0 decimals of accuracy
[22:26:39][D][sensor:094]: 'AQI: Minutes Remaining': Sending state 1072.00000 minutes with 0 decimals of accuracy
[22:26:39][D][sensor:094]: 'NowCast: Minutes Remaining': Sending state 712.00000 minutes with 0 decimals of accuracy
[22:26:45][D][sensor:094]: 'Outdoor Air Temperature': Sending state nan °C with 1 decimals of accuracy
[22:26:48][D][sensor:094]: 'Outdoor Air Relative Humidity': Sending state nan % with 1 decimals of accuracy
[22:27:39][D][sensor:094]: 'AQI: Minutes Remaining': Sending state 1078.00000 minutes with 0 decimals of accuracy
[22:27:39][D][sensor:094]: 'NowCast: Minutes Remaining': Sending state 718.00000 minutes with 0 decimals of accuracy
[22:27:40][D][sensor:094]: 'Outdoor Air Temperature': Sending state nan °C with 1 decimals of accuracy
[22:27:43][D][sensor:094]: 'Outdoor Air Relative Humidity': Sending state nan % with 1 decimals of accuracy
[22:27:53][D][sensor:094]: 'Uptime Sensor': Sending state 49.03300 s with 0 decimals of accuracy
[22:27:57][D][sensor:094]: 'Wifi Strength': Sending state -67.00000 dBm with 0 decimals of accuracy
[22:28:39][D][sensor:094]: 'AQI: Minutes Remaining': Sending state 1077.00000 minutes with 0 decimals of accuracy
[22:28:39][D][sensor:094]: 'NowCast: Minutes Remaining': Sending state 717.00000 minutes with 0 decimals of accuracy
[22:28:40][D][sensor:094]: 'Outdoor Air Temperature': Sending state nan °C with 1 decimals of accuracy
[22:28:43][D][sensor:094]: 'Outdoor Air Relative Humidity': Sending state nan % with 1 decimals of accuracy
[22:28:48][D][sensor:094]: 'Outdoor Air Particulate Matter <10.0µm Concentration': Sending state nan µg/m³ with 0 decimals of accuracy
[22:28:53][D][sensor:094]: 'Uptime Sensor': Sending state 109.03900 s with 0 decimals of accuracy
[22:28:56][D][sensor:094]: 'Outdoor Air Particulate Matter >2.5µm Count': Sending state nan /dL with 0 decimals of accuracy
[22:28:57][D][sensor:094]: 'Wifi Strength': Sending state -69.00000 dBm with 0 decimals of accuracy
[22:29:07][D][sensor:094]: 'Outdoor Air Particulate Matter <1.0µm Concentration': Sending state nan µg/m³ with 0 decimals of accuracy
[22:29:13][D][sensor:094]: 'Outdoor Air Particulate Matter >0.5µm Count': Sending state nan /dL with 0 decimals of accuracy
[22:29:24][D][sensor:094]: 'Outdoor Air Particulate Matter <2.5µm Concentration': Sending state nan µg/m³ with 0 decimals of accuracy
[22:29:39][D][sensor:094]: 'AQI: Minutes Remaining': Sending state 1076.00000 minutes with 0 decimals of accuracy
[22:29:39][D][sensor:094]: 'NowCast: Minutes Remaining': Sending state 716.00000 minutes with 0 decimals of accuracy
[22:29:40][D][sensor:094]: 'Outdoor Air Temperature': Sending state nan °C with 1 decimals of accuracy
[22:29:43][D][sensor:094]: 'Outdoor Air Relative Humidity': Sending state nan % with 1 decimals of accuracy
[22:29:53][D][sensor:094]: 'Uptime Sensor': Sending state 169.03900 s with 0 decimals of accuracy
[22:29:57][D][sensor:094]: 'Wifi Strength': Sending state -68.00000 dBm with 0 decimals of accuracy
[22:29:59][D][sensor:094]: 'Outdoor Air Particulate Matter >1.0µm Count': Sending state nan /dL with 0 decimals of accuracy
[22:30:00][D][sensor:094]: 'Outdoor Air Particulate Matter >0.3µm Count': Sending state nan /dL with 0 decimals of accuracy
[22:30:05][D][pmsx003:288]: Got PM1.0 Concentration: 5 µg/m^3, PM2.5 Concentration 10 µg/m^3, PM10.0 Concentration: 10 µg/m^3, Temperature: 4.8°C, Humidity: 37.3%
[22:30:05][D][sensor:094]: 'Outdoor Air Particulate Matter <1.0µm Concentration (1)': Sending state 5.00000 µg/m³ with 0 decimals of accuracy
[22:30:05][D][sensor:094]: 'Outdoor Air Particulate Matter <2.5µm Concentration (1)': Sending state 10.00000 µg/m³ with 0 decimals of accuracy
[22:30:05][D][sensor:094]: 'Outdoor Air Particulate Matter <10.0µm Concentration (1)': Sending state 10.00000 µg/m³ with 0 decimals of accuracy
[22:30:05][D][sensor:094]: 'Outdoor Air Particulate Matter >0.3µm Count (1)': Sending state 942.00000 /dL with 0 decimals of accuracy
[22:30:05][D][sensor:094]: 'Outdoor Air Particulate Matter >0.5µm Count (1)': Sending state 266.00000 /dL with 0 decimals of accuracy
[22:30:05][D][sensor:094]: 'Outdoor Air Particulate Matter >1.0µm Count (1)': Sending state 52.00000 /dL with 0 decimals of accuracy
[22:30:05][D][sensor:094]: 'Outdoor Air Particulate Matter >2.5µm Count (1)': Sending state 1.00000 /dL with 0 decimals of accuracy
[22:30:05][D][sensor:094]: 'Outdoor Air Temperature (1)': Sending state 4.80000 °C with 1 decimals of accuracy
[22:30:05][D][sensor:094]: 'Outdoor Air Relative Humidity (1)': Sending state 37.30000 % with 1 decimals of accuracy
[22:30:39][D][sensor:094]: 'AQI: Minutes Remaining': Sending state 1075.00000 minutes with 0 decimals of accuracy
[22:30:39][D][sensor:094]: 'NowCast: Minutes Remaining': Sending state 715.00000 minutes with 0 decimals of accuracy
[22:30:40][D][sensor:094]: 'Outdoor Air Temperature': Sending state nan °C with 1 decimals of accuracy
[22:30:43][D][sensor:094]: 'Outdoor Air Relative Humidity': Sending state nan % with 1 decimals of accuracy

Please contact our support through the form on our website and include the serial number of the monitor.

We do test all pre assembled units extensively and with the serial number we can look up the test report.