Suppressing digital pin switching noise

Thanks for the confirmation. My schematic reflects the same.