1.02 Thousand reading

Hello team,
i have been working with mq135 and dht11 sensor for making a air pollution monitor for project. Bt i got that constant reading of 1.02 Thousand on my line graph or any other graph i select. Please tell me some solution for this. Eagerly waiting for reply plzz/.

Hi @hrishikesh.01deshpan,

When you’re working with sensors like the MQ135 and DHT11 to create an air pollution monitor and consistently receive readings that appear to be at a constant value, there are several potential reasons and solutions to consider:

  1. Sensor Wiring and Connections:
  • Double-check your wiring and connections to ensure they are correctly configured. Loose or incorrect connections can result in constant readings.
  1. Data Conversion:
  • Ensure you are correctly interpreting the raw sensor data. Analog sensor readings may need to be converted to meaningful units or values based on the sensor’s specifications.
  1. Power Supply:
  • Ensure that the power supply to your sensors is stable and within the recommended voltage range. Fluctuations in power can lead to inconsistent readings.
  1. Code and Libraries:
  • Review your code for any errors or issues with the libraries you are using. Ensure that your code is correctly configured to read and process the sensor data.

By systematically checking and addressing these potential issues, you should be able to troubleshoot and improve the accuracy of your air pollution monitoring system.

First of all
Wiring: Only 3 wires connected to the bolt.
Power supply from USB port.
Code and libraries: have taken it from snippets in the code section. So code cannot be wrong until n unless the snippets are going wrong.
Still sensor connected to A0 port is showing the same 1.02K value and its a constant value. Please help.
IF pollution is same, please explain me the reason, so i can tell it to my teachers…!!

Hi @hrishikesh.01deshpan,

Could you please share both the code and circuit connection screenshots with us? This will allow us to provide you with the necessary assistance.

DHT 11
A0- Input

setChartTitle(‘Air Pollution Monitor’);
voMeasured = A0;
var lineGraph2 = new boltGraph();
lineGraph2.setChartType(“lineGraph”);//line graph btw Time & co2 from dht11
lineGraph2.setAxisName(‘Time’, Humidity’);

Normal code taken from snippets for a line graph of the input of sensor.
I dont think this code n connections will help you a lot.
I guess there’s a problem with the boltiot module.
Please help me.

Any update, as you might have seen the code n connections @rohit.ts ?!

Hi @hrishikesh.01deshpan,

Apologies for the delay in getting back to you.

It seems there’s a misunderstanding in your code. The DHT11 sensor is being used for humidity, but you’ve mentioned “co2” in your code comments. Additionally, the MQ135 sensor is typically used for measuring air quality, including CO2 levels, but your code doesn’t seem to incorporate readings from the MQ135 sensor.

Here’s a corrected version of your code for better clarity:

setChartTitle('Air Pollution Monitor');

// Assuming you are using the Bolt DHT11 sensor for humidity
var dht = new boltDHT('DHT11', 'A0');  // Use the correct pin for DHT11
var humidity = dht.getHumidity();

// Assuming you are using the MQ135 sensor for air quality
var voMeasured = A0;  // This line seems unnecessary, confirm if it's needed

var lineGraph2 = new boltGraph();
lineGraph2.setAxisName('Time', 'Humidity');
lineGraph2.plotChart('time_stamp', humidity);

Please note the following:

  1. Connect the DHT11 sensor to the correct pin on the Bolt IoT module.
  2. Ensure you have the necessary library or functions to get the humidity reading from the DHT11 sensor.
  3. If you’re using the MQ135 sensor for CO2 levels, make sure it’s properly connected, and its readings are used in your code.

If you’re still facing issues, consider sharing more details about the MQ135 sensor, its connections, and any additional relevant code. This will help in providing more accurate assistance.

Okay I’ll check the same.