#!/usr/bin/env python

import os
from time import sleep

import RPi.GPIO as GPIO

GPIO.setmode(GPIO.BCM)
GPIO.setup(21, GPIO.IN)


while True:
    if (GPIO.input(21)):
        print ("Kugel!")
        sleep(0.4)
