Arduino, Processing and 2 HC-SR04 Ultrasonic Sensor problems. Please help....

Ok now I did the auto format.

But not the curly braces or the print statements.

Or the comparison between pd1 and d1 or between pd2 and d2.

We need to know what the problem is.