Pull-up resistors are very common when using microcontrollers (MCUs) or any ... on an Arduino, you can use the following line of code in your setup() function:.
learn.sparkfun.com