Using a reed switch with Arduino

#define PULSESWITCH 1 //pin for the switch

Your diagram shows it wired to pin seven (7).