Sleep on your back not your side. Stop watching porn, before you go to sleep repeat to yourself "I will not have a wet dream" 20 times it works and subconsciously you will stop yourself from having one. Also try and not be stressed when you are going to sleep maybe meditate a bit.