Questions about motion sensors

Regarding motion sensors:

Can they be placed outdoors or are they not weather proof?
If I place one indoors and point it to a window, can it “see” through the glass?
How long do the batteries typically last?

Thanks!