Spotting

One day of light spotting on the 27th. I haven’t had anymore since. My period is due on the 5th. What could have caused the spotting?? Ovulation day was on 21. My husband and I had unprotected sex the day after ovulation.