Wiring of limit sensor & inductive proximity sensor on CNC shield

Sure, I made a schematic in my whole project's topic, in here: 1st project guidance: mini chop saw automation (with CNC shield)

Regarding the code, I have only pseudocode so far, but I just realized I needed to use millis() for multitasking so I have to change everything.
I'll add a first attempt of code this weekend (in the global project topic also)