Added threshold for the proximity sensor, if below, turn the note off