Python Help

import RPi.GPIO as GPIO
from time import sleep

in1 = 24
in2 = 23
en = 25
button = 2
temp1=1

GPIO.setmode(GPIO.BCM)
GPIO.setup(button,GPIO.IN)
GPIO.setup(in1,GPIO.OUT)
GPIO.setup(in2,GPIO.OUT)
GPIO.setup(en,GPIO.OUT)
GPIO.output(in1,GPIO.LOW)
GPIO.output(in2,GPIO.LOW)
p=GPIO.PWM(en,1000)
p.start(25)

tray = 0
while(1):
if digitalRead(button)==HIGH and tray==0:
	print("Opening")
	p.ChangeDutyCycle(25)
	GPIO.output(in1,GPIO.HIGH)
    GPIO.output(in2,GPIO.LOW)
	tray = 1
	time.sleep(3)
	GPIO.output(in1,GPIO.LOW)
    GPIO.output(in2,GPIO.LOW)
elif digitalRead(button)==HIGH and	tray==1:
	print("Closing")
	p.ChangeDutyCycle(25)
	GPIO.output(in1,GPIO.LOW)
    GPIO.output(in2,GPIO.HIGH)
	tray = 0
	time.sleep(3)
	GPIO.output(in1,GPIO.LOW)
    GPIO.output(in2,GPIO.LOW)
else
	print("Waiting")

This is my code. I get an unexpected indentation error on line 27 “tray = 1”
I’ve never ran into this before now but im still new to python, thought I’d give it a try on an easier project and its proving to be more difficult than I though it would’ve been

Don’t mix tabs and spaces. Make sure you have your editor configured to replace tabs with spaces. I can tell some of your indented lines start with a tab, and some start with spaces.