I want to use four pins on an Arduino Uno as digital inputs pins for four 12V DC outputs. I know I have to use a voltage divider first (with resistor values being 14kOhm and 10kOhm) to get the correct voltage range (0-5V) and also use the internal 20kOhm resistors on the Uno to achieve this.
My first idea was to not use the internal resistors on the Uno, but instead use external ones, to pull the voltage to zero, when nothing is connected to the input (prevent floating values). A colleague suggested the usage of the internal pullups on the Arduino, but I have no idea how to wire this up now.
Can someone explain it to me somehow?