updated sensor api