The sticky traps are somewhat effective, but definitely not humane. Basically, they are strips of paper or cardboard with a very sticky glue on them. The rats walk over them and get stuck. There isn't any poison, so what you find is an alive, panicked rat stuck in glue. They can sometimes pull themselves free, leaving behind skin, hair, and sometimes even part or all of their tail. You will have to kill the rats (or leave them until they starve or die of dehydration).
If the area you are trying to keep them out of has outlets, you might want to try a plug in rodent deterrent - it basically puts out a high-pitched noise that rodents don't like. Not good if you have pet rabbits/guinea pigs/hamsters, etc. The other thing you could try is peppermint oil (not peppermint flavoring, but the actual oil). It's a bit pricey, and you'll be craving candy canes, but mice and rats don't like the strong smell. Soak large cotton balls or balls of wool batting in it and put them in the corners of the space and around the perimeter or wherever the rats seem to be traveling the most.
Good luck!