When he sleeps, you have to turn off the light, just as with early versions of the Tamagotchi
To do this press the A button to bring up the lights menu, then press A again to select the bottom option ('Lights off') and press B to confirm
A really helpful video i found was this one by Uncle...