Updated ap-sensor.sh

changed formatting to increase readability.