Improving sensor display code, fixing #156