This code is for reading analog values, converting them into levels and then triggering a set of relays based on the analog read level.