Arduino Uno with ESP01 Wifi

Hello everyone, i am struggling with my school project. By the way i am new with arduino uno coding. My project is all about Sending MQ7 gas sensor data to my database (Xampp) using ESP01 wifi Module as the data tranceiver to my database. PLEASE HAVE PITY ON ME :frowning: i found some tutorials likely same with my project but so many errors where involved. please Help me. God bless

There is no way for us to help you without a lot more information.

Please post your full sketch.

If possible, you should always post code directly in the forum thread as text using code tags:

  • Do an Auto Format (Tools > Auto Format in the Arduino IDE or Ctrl + B in the Arduino Web Editor) on your code. This will make it easier for you to spot bugs and make it easier for us to read.
  • In the Arduino IDE or Arduino Web Editor, click on the window that contains your sketch code.
  • Press "Ctrl + A". This will select all the text.
  • Press "Ctrl + C". This will copy the selected text to the clipboard.
  • In a forum reply here, click on the reply field.
  • Click the </> button on the forum toolbar. This will add the forum's code tags markup to your reply.
  • Press "Ctrl + V". This will paste the sketch between the code tags.
  • Move the cursor outside of the code tags before you add any additional text to your reply.
  • Repeat the above process if your sketch has multiple tabs.

This will make it easy for anyone to look at it, which will increase the likelihood of you getting help.

If the sketch is longer than the 9000 characters maximum allowed by the forum, then it's OK to add it as an attachment. After clicking the "Reply" button, you will see an "Attachments and other settings" link.

When your code requires a library that's not included with the Arduino IDE please post a link (using the chain links icon on the forum toolbar to make it clickable) to where you downloaded that library from or if you installed it using Library Manger (Sketch > Include Library > Manage Libraries in the Arduino IDE or Libraries > Library Manager in the Arduino Web Editor) then say so and state the full name of the library.

Please do this:

  • When you encounter an error, you'll see a button on the right side of the orange bar "Copy error messages" in the Arduino IDE (or the icon that looks like two pieces of paper at the top right corner of the black console window in the Arduino Web Editor). Click that button..
  • In a forum reply here, click on the reply field.
  • Click the </> button on the forum toolbar. This will add the forum's code tags markup to your reply.
  • Press "Ctrl + V". This will paste the error between the code tags.
  • Move the cursor outside of the code tags before you add any additional text to your reply.

If the text exceeds the forum's 9000 character limit, save it to a .txt file and podst it as an attachment. If you click the "Reply" button here, you will see an "Attachments and other settings" link.

Provide a detailed explanation of what you're struggling with.

Seems to be a quite inappropriate choice of parts. The project may have been made deliberately difficult for you! :astonished:

Apparently you want to encode an analog input from the gas sensor rather than a simple "yes/ no".

The ESP-01 does not have the analog input of the ESP chip brought out (though it is in there!) but just about any other ESP- module does. If you simply used a WeMOS D1 Mini, you could connect the gas sensor directly (with a voltage divider) to the ESP and it would be much, much simpler to assemble and to code since you have to code only one Arduino-like device and not concern yourself with communications between two of them.