Multi buttons input for single analog pin on Arduino

This article is a part of NTC-thermistor incubator with Arduino (part 2) For triple NTC-thermistor probes (part1) access here . Hi again, today I continue my little experimentation with Arduino. The ultimate aim is to have a homemade incubator. This article will discuss a way to have a user input for some parameters in my incubator, like upper temperature limit ( upperTemp ), lower temperature limit ( lowerTemp ), heating and cooling time during the normal operation ( heatingTime and coolingTime , respectively). HARDWARE SETUP To enable user input, I selected four push buttons, representing select menu, down, up, and mute buttons. Learning from an Arduino page , it is fairly simple to understand the logic of multi buttons input for a single analog pin. I employed four different resistors to give different input values to an Arduino analog pin. For this, I prepared electronic parts: 4x four-legged push buttons, 1x 10kΩ, 1x 4.7 kΩ, 1x 1kΩ, 1x 470Ω, and 1x 47Ω