Reads four push buttons and acts according to logic combinations.