TROUBLESHOOTING - patience4711/SONOFF-SENSOR GitHub Wiki
When connection fails this can be a problem with a corrupted or onreadable flash. This can be solved by using the "erase flash" button in the accesspoint. The Sonoff will then factory reset.
When the sensor won't work you should check in the menu "setting" that serial debug is disabled.