Losing my sex drive

I’ve been single for a while now meaning I haven’t had any action since, and since I’ve heard the horror stories of porn addiction I’ve sworn it off, what I’m worried about is if there’s better alternatives/healthier ways of making sure you’ll still be able to get it up when it’s time? As the saying goes you don’t use it you lose it