Why do my CJMCU-8128 sensors fail to initialize on Arduino Uno for my IoT project?

I am working on an IoT project for my final year. The project is smart carbon capturing efficiency using IoT. I am using CJMCU-8128 Sensor which comprises of three sensors: CCS811 sensor for reading CO2 and Volatile Organic compounds, HDC1080 for reading temperature, and BMP280 for reading pressure. I have connected the sensor to my Arduino Uno board, and have also programmed the sensor. However, after compiling and uploading the code to my Arduino Uno board, its keeps telling me that the sensors fails to initialize. Please if you have a solution to this, kindly help me.
Solution:
Hi @Minister John Please cross check the slave address from the datasheet. Just make sure your i2c sensor initializes properly in case if you don't receive data. I suggest using debugger to debug and see what's going on in the code. Unfortunately, I haven't had an opportunity yet to work on the sensor you mentioned.
Jump to solution
4 Replies
Marvee Amasi
Marvee Amasi5mo ago
Hi @Minister John your code is good for the job , but issues like this could be hardware related , you might want to verify your wiring or connections, or check your power supply too, or still still you check if your libraries are correctly installed or up to date or even compatible
Minister John
Minister John5mo ago
Good morning, Sir. I have checked the libraries and updated them. Also, I have as well checked the wiring, but on my Serial Monitor it keeps showing "Sensor initialization failed". What else should I do
Solution
Umesh Lokhande
Umesh Lokhande5mo ago
Hi @Minister John Please cross check the slave address from the datasheet. Just make sure your i2c sensor initializes properly in case if you don't receive data. I suggest using debugger to debug and see what's going on in the code. Unfortunately, I haven't had an opportunity yet to work on the sensor you mentioned.
Want results from more Discord servers?
Add your server