Optimize ESP32 BMI Timing

Job ID: 39847904

Budget: $10 – $30 USD

I have an ESP32 project with a TFT display that measures BMI (Body Mass Index).
The code is working, but there’s a timing issue during the measurement phase.

Currently, when a user steps on the BMI machine, the display shows “Measuring…” — this message stays on the screen for around 2 minutes 10 seconds, even though the delay in the code is set to 2 seconds.

The total process (from “Measuring…” to displaying the result) should ideally complete in 10 seconds, but it’s taking far longer.

I need a freelancer to:

Debug and identify the cause of this extra delay.

Fix the timing issue so that the measurement and display update happen within the correct time frame (around 10 seconds).

(Optional) Suggest or implement code optimizations for smoother performance.

Technical Details:

Microcontroller: ESP32

Display: TFT_eSPI

Code language: C++ / Arduino IDE

Bluetooth used for serial communication

EEPROM / Preferences library used for storage

Deliverables:

Corrected and optimized .ino code

Short explanation of what caused the delay and how it was fixed

Skills Required:

ESP32 (Arduino Framework)

C/C++ (Embedded systems)

Debugging and timing optimization

Experience with TFT_eSPI or display libraries