Sorry to bump a bump.
but I was thinking about this the other day. I found an old gutted optical mouse in a box. I'd forgotten that they have an emitter/sensor combo for detecting scroll wheel movement. Wonder if it could be hacked together for bottle detection? I believe it's IR based...
hmmm.