I have now updated the pin´s and deleted the delay.
The sensor works good, but the stepper is the same, better if i dont use the delay but then the lcd looks
wird.
The problem is that i need to press button to get the stepper moving, then relese to make it stop, bercause i need to stop the sensor at prisice messurment and there will always be a "plate" infront of the sensor., dont know any outher way to make it work??
Can i make this work at all?
Do i need another board?
Thanks