The display begins with a value of 10 (the motion sensor has a range from 0-10). The value of the motion sensor is subtracted from 10 and a message with that value is sent out. If the message equals 0, then the motion sensor is registering an open music box. This will make the LEGO person dance to the music. Otherwise, nothing will happen.