Forgive me for being brutally honest, but has anyone actually used an electronic faucet? They're horrible! They're very unreliable. They often are either slow to react, or they don't turn on at all, or they stay on after you've left and waste a lot of water. The sensor design sucks big time.
To improve reliability may require a far IR (motion) sensor, as apposed to a near IR sensor. It also instead of trying to sense the hand in the sink and having to deal with water and dirt, it might be easier to sense the person's body or arm or the area around the sink. Failing that, a better choice might be a non-optical sensor, like ultrasound, or a capacitve sensor, or an electric field sensor, which as I understand it, senses capacitance to ground by driving an antenna with a 100 kHz sine wave.
But what is an electronic faucet supposed to achieve anyway? It seems like an aweful lot of trouble just to save one twist of the wrist, and they're probably more expensive than a standard faucet. Any engineering school worth a damn ought to teach how to ask these critical questions about design!
Why not just use a normal faucet, or maybe use one that can be operated with a foot pedal?
good luck. Sincerely, M