Switching sensor and power pin number
Rename sensor pin to open pin