added sensor reading API