added ability to set misalignment of sensor