You may have developed a case of balanitis, which is inflammation of the head of the penis. This can be caused by poor hygiene, irritation from soaps or lotions, or even a yeast or bacterial infection. I recommend keeping the area clean and dry, avoiding harsh soaps, and wearing loose-fitting underwear. It's best to see a dermatologist for a proper diagnosis and treatment, which may include medications or creams.