Updated ap-sensor.sh

Fixed formatting.