I have a wired joystick Logitech Dual Action and I want to make it wireless using Pro Mini. Since I want to put all in the joystick hull, I can not use USB shield, but can easily soldered to the buttons directly on the board. With sticks are no problems, they have a range of 0 to 5 and I connect them to analog input. The problem with the buttons, they have a logical one - it is about 1.2V. My question is, how to recognize this unit with Arduino. I plan to use MOSFET IRLML2502 or IRLML2402. Connect 1.2V to G, 5V to S and Arduino digital input to D. Is it right? Or maybe there is some way easier?