Project: Tester of light sources , need little advice

ok , HIGH i did that thanks, but how i programe to wait until i push button???