removed serial.println to address delay in pin read