Loading
Loading
IoT Lab content is currently available in Arabic only. We're working on an English version.
عرض بالعربية →What to do when your project doesn't work and there are no compilation errors.
Always use a multimeter to verify that voltage (5V and GND) is actually reaching the sensor's legs before assuming the sensor is faulty.
// استخدام الماكرو لتسهيل التتبع
#define DEBUG 1
#if DEBUG
#define debugPrint(x) Serial.println(x)
#else
#define debugPrint(x)
#endif
void loop() {
debugPrint("Reading sensor...");
// ... كود الحساس ...
}Guessing where the fault is and randomly changing lines of code. Follow a scientific approach by eliminating causes one by one.