Hi there everyone,
I hope I've chosen the correct section, if not, please, let me know
I think, my whole problem is well described in the topic - I can't run both sensors at once. I have to admit, I'm total beginner if it comes to ESP/Arduino programming, so I'm probably making stupid mistakes, please, don't kill me
But what is my problem? I'm trying to build a device that would measure temperature, air pollution, humidity, and air pressure. I have PMS7003 and BME280, what I know, most common sensors.
For both modules, I've prepared two simple functions designed to display data gathered by sensors.
And here is the case - When I run only PMS7003 code everything works just fine:
When I run only BME280 it works as well. But if I run both at once, PMS7003 data disappears:
Here you can find the whole code I'm using to achieve the mentioned target - AAA - Replit
I have feeling that maybe I should somehow use different "serial" for both but...I can't
Or maybe the problem is somewhere else?
I would be very grateful if someone of you could help me
Thank you in advance!