Am I having a miscarriage

Ok I had light brown spotting that turned into red, it didn't fill a pad accompanied with cramps then it stopped and now I have light brown spotting again I took a digital test yesterday that said 2-3 weeks and I just did another digital and it now says 3+ what's going on?