fix discrete sensor type