Try writting the led HIGH, incase the board maker is using an inverter! Could you post a link to where you bought it, or the datasheet for the breakout.
Dust SensorUser ManualWaveshare2V1.4, December2920151.2.Control principle1)Enable the internal infrared emitting diode by setting the pin ILEDto HIGH.2)Wait 0.28ms, then the external controllerstartsto sample the voltage from the pin AOUTof the module. Notes that the output wavewill take 0.28ms to reach steady state after the internal infrared emitting diode is enabled, as Figure 2shows.Figure 2:Sampling timing of output pulse3)There is a periodof 0.04ms for sampling. When finished,set the pin ILEDto LOW to disable the internal infrared emitting diode.4)Calculate the dust concentrationaccording to the relationship between output voltage and dust concentration. For more detailed information, please refer to the relative Demos.Note:Theoutputvoltagehasbeendivided(seeschematic),sothatthevoltagemeasurementshouldx11togettheactualvoltage.
Hola amigo, estoy teniendo un problema igual al tuyo, como lograste resolverlo? Yo estoy conectando el sensor a un Lora32 ESP32 V2-1.6. Si me ayudas por favor.
Hello friend, I am having a problem like yours, how did you manage to solve it? I am connecting the sensor to a Lora32 ESP32 V2-1.6. If you help me please.
Hello, I can send you the link of the code that I used. Please notice that different arduinos have different bits of resolution on the GPIO pins, and the values will be different.