Hi everyone maybe you can help me out

My room mates never flush the toilet and no matter how much I yell at them
they still do not flush the toilet.

I want to build an automatic toilet flusher so all they have todo is pass there hand by it or just have a timer when it detected someone.

Here's what I have an idea of what I need

1 servo

1 Pic micro controller 16F627A

1 Ir receiver

1 Ir led

and I already know the resistors and caps I need.

Should I go with a different approach for programing or do you think that this sounds like a pretty solid toilet flusher?