added more sensor function