AirGradient Forum

Airgradient DIY SoftwareSerial.h present but not found

I bought the Airgradient DIY as demonstrated in Your home's air could be making you sick. Fight back! - YouTube

It’s working at the moment. I changed some code. I now want to upload this code but I get the error

AirGradient.h:10:28: fatal error: SoftwareSerial.h: No such file or directory

I have no idea why this is happening because it used to work just fine before and I have SoftwareSerial.h located at /home/user/Downloads/arduino-1.8.19-linux64/arduino-1.8.19/hardware/arduino/avr/libraries/SoftwareSerial/src/SoftwareSerial.h.

I am using the Arduino IDE under Ubuntu Linux 22.04.

Are the search paths somehow not configured properly? How do I solve this?

hello there,

necro-bumping this thread, as the very same is happening to me today!

i use the latest arduino IDE as an appimage, got a bunch of libraries, and am unsure how to define the “board” for the Airgradient One… tried a few, but with all i get the exact same error. like if SoftwareSerial.h was not found…

has the original poster found a solution? or anyone has an idea?

Thanks!

Hi @Samuel_AirGradient, would you mind helping with the issue that occurs on Arduino IDE?

Follow the direction here

Sounds like when you cloned the repo you weren’t in the libraries folder so the IDE doesn’t know where to find the serial library.

2 Likes

@MallocArray Thanks for helping provide the link!

thanks for this!

I thought i had followed it, but will try again from scratch…

@gabu if you still have the issue, please feel free to describe what happened (with logs would be excellent). Thanks!

1 Like