How to detect people/motion through glas

danimath:
start, when someone passes.

Could you explain what you mean by that? If you mean walks through the doorway, I guess you need some sort of beam-breaking system. But if you just mean walks past the window, a webcam with motion detection would achieve that using existing freely available software.