regard sensor state when printing
Moved everzthing in one project because of build problems.