added option to change if rotation sensor used