PMS7003 Sensor not send correct data to webserver

Hi, I am trying to read data from a PMS7003 sensor and post that data on to a web server, however, the readings do not come out correct. The first few reading are close to one, but then they shoot up to either 256,512, 1028, etc. Those numbers lead me to suspect that there is a communication issue withing the arduino. I have my sensor connected to Digital pin 5, and I am using a W5500 ethernet module to connect to the internet. Does anyone have any idea why this may be happening?

Does anyone have any idea why this may be happening?

Three possibilities:

  • Failed sensor
  • Wrong wiring
  • Error in code

As you failed to provide any of the information we ask for in the sticky post at the top of the topic ("How to use this forum - please read") we cannot help you further.