That shouldn't be a code issue. As far as emt outside, I would ease away from that unless you are using compression fittings. Even so, they are not watertight and you'll get a lot of leaks at the couplings and connectors. It will start to rust in about 2 years even though it is galvanized. I suggest pvc, but you are going to have to strap it quite often or it will droop down once it heats up in the summer. No conduit is 100% watertight due to condensation anyway. Don't run any romex or UF cable exposed either. Even though UF is rated for sunlight, it will eventually break down. If your doing it yourself, you shouldn't have to worry about the city's code unless you just want to pull a permit. One last thing, most motion detectors have a built in photocell so you shouldn't have to provide a seperate one. Might want to install an overide switch so you can manually operate it or turn it off.