How to control a Sonoff Basic switch with an Arduino Nano
This problem has been solved by adding a PULL DOWN resistor to ensure default state LOW on the Arduino side (add a 10k resistor from PIN 1 to GND).

I used this article to understand.