Checking for wiring orientation