updated sensor logic