A New Zealand Group -- Join or Mentor?

Help! I'm very new to Arduino and trying to write code to turn on a green LED as car enters garage and interrupts an infrared beam and when it is safe to lower the door a red LED comes on.
I'm using 'f' statement but not getting very far. Can someone PLEASE HELP!
David38

dk.cm@netaccess.co.nz