add get sensor function, working