Humor is powerful in writing. It makes your work memorable and enjoyable. But it's also tricky - what one person finds funny, another might not.
Read your work aloud. If it makes you laugh, it might make others laugh too. Test your humor on friends before publishing.