Quote Originally Posted by hodgdre
I also have 3 other projects due in the next two weeks.
And no doubt you will want the same sort of assistance with then

As Sayzer mentioned, you should really come up with something first and then seek assistance with the debugging and improving stage. Reading your post it sounds as if you want someone to develop the code for you with-in a two week time period, which aint going to happen unless someone skilled enough has the time ( and you can afford their hourly rate )

Think about it logically:

You need to scan a keypad, detect the string of numbers, match them to the pre-programmed string. If they match then change the state of a pin to drive the green Led and activate the motor, or if they don't then change the state of a pin that drives the red LED.

Take a look at the PicBASIC pro manual - most of the things you need are documented there, so its a place to start.