To interface a push button with a Raspberry Pi and develop a Python program to control an LED based on the button’s state. The LED turns ON when the button is pressed.

Applications

  1. Home Automation – Control lighting or devices with button input.
  2. Security Systems – Trigger alarms or indicators based on sensor activation.
  3. Prototyping – Build IoT or robotics prototypes with button-based controls.
  4. Education – Teach basic electronics and programming interaction.