modified gpio for raspberry pi b+ and inverted logic for the limit switch