configured pinmuxing for photo sensor