If Else statement when identifying voltage? HELP! Science Fair Project

He's 9. He doesn't have a potentiometer. The phone cord is 5VDC, does that help?