The project ignores you while it waits (delay)
- Arduino
- ESP32
Why it happens
- Long
delay()calls inloop(). - Waiting for a sensor or Wi-Fi inside a
whileloop.
How to fix it
- Make the delays short.
- Use
millis()to check the time instead of stopping. - Hold the button until the light changes to see if the delay is the problem.
It worked if: The button reacts straight away.
Related errors
Tutorials where it can happen
- Automatic Pet Feeder with Arduino and Servo
- Bluetooth Controlled Servo Motor using Arduino for Kids
- Color Detection and Sorting System with TCS34725
- Digital Input and Output with the ESP32
- Digital Inputs and Digital Outputs on the NodeMCU ESP8266
- Distance Measurement and Stepper Motor Control with LCD Output
8 more
- How to Fix HC-05 Upload Errors with SoftwareSerial
- Light-Sensitive Motorized Blinds with Arduino and LCD
- Object Tracking and Following System with LCD Feedback
- Smart Blinds Control Based on Weather Conditions with LCD Feedback
- Smart Mailbox with Arduino, Ultrasonic Sensor and Servo
- Smart Pet Door with Arduino, Ultrasonic Sensor and Servo
- Smart Trash Can with Arduino: Lid Opens by Itself
- Ultrasonic Sensor and Servo Motor with Arduino Uno
From how the part works. Explained from how delay() works.
Didn't help? Search another error or ask us.

