I recently bought Air quality sensor zp07-mp901. I connected it to +5V and - . When I tried to read the sensor it showed me only the valu of 0 or 1025. I all so used volt meter to measure the actual voltage on sensor and at first I measured 5V but it droped to1V. I all so tested the program whit potenciometer and it worked fine so I dont know what is wrong whit it.
What pins do you have connected and please supply the sketch.
According to the data sheet which I had to dig out as you forgot to add a link you dont use pin B.
Data sheet HERE
BTW these things usually have a "burn in time" to settle.
There are sketches around that you can use to help with that and any offsets you might need.
Not doing all the work here so will leave that for you to google.
EDIT...BTW there are multiple variations on that sensor so a link to your source would be great to have to make sure we dont give you the wrong information
This is the code I have been using to test the sensor:
void setup() {
// initialize serial communication at 9600 bits per second:
Serial.begin(9600);
}
// the loop routine runs over and over again forever:
void loop() {
int sensorValue = analogRead(A0);// read the input on analog pin 0:
Serial.println(sensorValue); // print out the value you read:
delay(1000);
}
And this are the messured values from the sensor:
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1022
1
0
1
1
0
0
0
0
0
0
1022
0
0
0
0
0
0
0
1021
0
0
1022
0
0
0
0
0
0
0
1021
0
0
1022
0
0
0
0
0
0
0
1022
0
0
1021
0
0
1
0
0
0
0
1021
0
0
1022
0
0
1021
0
0
.
.
.
this is was messured at the second time I was testing it:
1023
1022
1023
1022
1023
1022
1023
1022
1023
1023
1022
1022
1023
1023
1023
1023
1023
1023
1022
0
1023
1022
1022
1023
1022
1023
1023
1022
1023
1023
1022
1023
1022
0
1023
1023
1023
1023
1023
1023
1022
1023
1023
1022
1023
1023
1023
0
1023
1023
0
1023
1023
0
1022
1023
1023
1023
1023
1023
1022
0
1023
1022
0
1023
1022
0
1023
1023
1023
1023
1022
1022
1022
0
1023
1023
0
1023
1022
0
1022
.
.
.
When is was mesuring the voltage with volt meter. The voltage was oround 1V it vas goin up and down for obout 0,2V
This is the link to the site from which i have ordered my sensor:
https://wholesaler.alibaba.com/product-detail/Air-mass-sensor-module-LGZP07-MP901_60251470329.html
Ardiuno is powered via usb cabel from my laptop.
OK I am going to send you HERE and when you come back you can EDIT your post for us please.
And after you have done that please add a picture or schematic of how you have it wired.
BTW I thinks that sketch might be inadequate for the sensor.
Depending on how close it is to the MQ series This sketch may be worth testing out.
You can see from the output it will do both the digital read and the ppm.
You may be reading the digital output which would explain the numbers you are getting.
Have a selection of the MQ's here.
BTW that link is almost useless as they placed a banner over the back of the board to its impossible to see what it really consists of. Anyone who hides details like that in selling should be avoided IMHO.
Ok. But I all so have MQ 135 sensor and it dose all moste the same thing, it just dosent show such extrem valuse it lockes oround 77 i think. I was using the same code for both sensors.
Oh I did know that there was a second sensor whit 4 state polution signal but I orderd the one whit 10 state. Well they propably send me the wrong one.
You would have to link to the data sheet for the 10 state one..
And you have failed to edit your first post so i'm out of here.
What has all this got to do with the website or forum?
@ Groove
Diddly squat to be honest....what I forgot to put in a request to move it !
Ya wanna do the honours now its pretty much done !