Hello and thank you for using just answer. The neutral safety switch is located on the front of the transmission. Usuallly of this component is acting up you will also have issues with the reverse lamps not operating or incorrect shift position displayed on the gauge cluster. Here is how the switch looks:
ASE Certified Technician
ASE Certified, 10+ years experience, Lexus and Toyota Certified