Complex sentence: The thermal rises until it either forms into a cumulus cloud or hits an inversion layer, which is where the surrounding air is becoming warmer with height, and stops the thermal developing into a cloud.
Split into simpler sentences: The thermal rises until it either forms into a cumulus cloud. Or hit an inversion layer, which is where the surrounding air is becoming warmer with height, and stops the thermal developing into a cloud.