Arduino and HALL sensors problem

Simply, something doesn't work, and I can't realize where is problem. Is my logic of getting state of the hall sensors well written?