Prevent algae growth in the Kratky method by blocking light from reaching the nutrient solution, often by using opaque containers or covering exposed surfaces.