Correcting sensor torus code.