def cizgi(rf):
    for i in range(0, rf):
        dis = distance('cm')
        init()
        if ((gpio.input(23) == 0) and (gpio.input(24) == 0)):
            ileri(0.1, hiz)
        elif ((gpio.input(23) == 1) and (gpio.input(24) == 0)):
            sol(0.1, hiz)
        elif ((gpio.input(23) == 0) and (gpio.input(24) == 1)):
            sag(0.1, hiz)
        else:
            pass
        if (dis < 15):
            print('cok dar', dis)
            geri(0.5, hiz)
            servo(5.5)
            kontrol()
        elif (dis < 25):
            print('dar', dis)
        else:
            print('temiz', dis)
        dur()
def cizgi(rf):
    for i in range(0, rf):
        dis = distance('cm')
        init()
        if ((gpio.input(23) == 0) and (gpio.input(24) == 0)):
            ileri(0.1, hiz)
        elif ((gpio.input(23) == 1) and (gpio.input(24) == 0)):
            sol(0.1, hiz)
        elif ((gpio.input(23) == 0) and (gpio.input(24) == 1)):
            sag(0.1, hiz)
        else:
            pass
        if (dis < 15):
            print('cok dar', dis)
            geri(0.5, hiz)
            servo(5.5)
            kontrol()
        elif (dis < 25):
            print('dar', dis)
        else:
            print('temiz', dis)
        dur()