smart parking system coding help needed

check the attached coding, although this is only for display vacant parking when only one of them is occupied(i need to display the free parkings even if multiple parking are filled in any combinations).
Also in this coding only P4 ie dist[5] sensor is working , others are not working.I have checked the connections and the sensors ,both are correct.
I am not an expert in coding so i need your help with that.

updated_carpark.ino (3.62 KB)