Parallax offers a QTI sensor, which is a led + photo transistor on a breakout board. It’s easy to hook up to a JeeNode because the pin-out matches port pins 3..5:

Demo sketch, added as example to the Ports library:

Sample output:

Could be used to count power / gas meter revolutions.