You really have to write it for yourself if you want to keep going - unless you're lucky or have a large following already it's hard to get a lot of readers. I've written stories and serials and posted them on social media, my personal site, etc. (I release them as Creative Commons works) and few people read them. Self-published authors who want to make a living typically have to do a lot of promotion to get a chance.
Also there are times when I decide I want to read my own stuff for entertainment instead of a published novel. And the joy I get from that keeps me writing.