Added simple rotary sensor class