architecture degree project

I have tested LEDs with 82 ohm resistors, plain just that and they work fine. So there must have been a mistake in wiring. I'll rewire everything again see what happens.

Meanwhile, I get back to the question about the code. Could this be because the structure of the code doesn't allow arduino to correctly distribute its sources over multiple functions running at the same time? And generally could this even be a problem in arduino or never mind how many functions it runs at the same time it can always deal with them?

That serial.print freezes as well, really annoying me, cant see the values the sensor is reading... However, when the sketch was simply running code for sensor without the LEDs and servos, serial.print was working fine...