Added sensor function calls to main.