Jdy40 Arduino Example Best May 2026

Out of the box, the JDY-40 works. But to eliminate interference and maximize range, you must configure it via AT commands.

void setup() Serial.begin(9600); // For debugging via USB jdy40.begin(9600); // JDY-40 default baud rate jdy40 arduino example best

// Send data, then enter deep sleep jdy40.println("SENSOR:OK"); delay(10); // Put JDY-40 to sleep via AT command pinMode(4, OUTPUT); digitalWrite(4, LOW); jdy40.println("AT+SLEEP=2"); // Deep sleep delay(50); // Now sleep the Arduino (using LowPower library) Never send a command without an acknowledgment. Out of the box, the JDY-40 works

After setting AT+RFNETID , the modules automatically pair. No need for AT+LINK or address targeting. This is transparent broadcasting — anything one sends, all receive. Best Use Cases (With Example Sketches) 1. Wireless Sensor Node (Low Power) Send temperature every 60 seconds, then sleep the Arduino + JDY-40. After setting AT+RFNETID , the modules automatically pair

String receivedData = "";