Set the anchor by reversing the engine until the anchor chain is tight, and then run the engine at medium speed to make sure the anchor has dug in. You can watch a GPS to make sure the speed is around zero (and the anchor is not dragging) when you're doing this.
However, if the tide and/or wind changes, it can pull out a set anchor. If you use a LOT of chain and it's not too windy and the current is not too swift, the boat will only drag the chain around and won't actually pull on the anchor. Also, if it does pull the anchor up and you have a lot of chain out, it's likely to catch again somewhere nearby (unless it goes over a ledge into deep water).
Some people will set two anchors, one in each direction of the tide. I don't think I could do that without ending up with a tangled mess of chain.
Maybe you could get a wireless anchor alarm that goes off in your tent when the boat moves.