Multilevel sensor