Fixed bug in analog sensor selection