output formatting for sensors