added support for analog wall sensor and change end condtion to use totalAngle