How can I use a toggle switch with Arduino ?

Its a SPDT (single pole, double throw). You just need to use the centre pin and one of
the others if you want SPST.