Adopt a more Biblical attitude toward sex. Study what the word says about sex. Memorize scriptures having to do with holiness, temptation, and Christ's power. Your word have I hidden in my heart, that I may not sin against You. Understand your emotional patterns.
Pornography is triggered by depression and stress.
In difficult times, spend more time with your wife, family and friends. Don't isolate yourself. Ask God to cleanse your mind of images and memories you that feed your temptation. If you continue having trouble dealing with pornography or any other addiction, you should consider seeing a Christian counselor. If your daughter was addicted, you would help her do whatever it takes to find freedom and recovery.