You could use a small ball bearing encoder, like the ones from USDigital, and make the hub for the cups come down over it to protect it from the rain.
↧