remove sensor listener code