Reading timed out

I’m working on a salesforce trailhead project and I always get this message “divisé - reading timed out”.
Also the light does not stay green and the divise still going off and online.

Does anyone know what could be the error?

my code is in the attached file.

Hi 7dots, did you figure out what was wrong? I had the same problem. You need to use the updated Trailhead instructions here: There is new device code and agent code!