When sampling different habitats and comparing them, biologists use the same sampling technique. For example, if you're using a pitfall trap, you should make sure they're set up in the same way and left for the same length of time. If you're using a Malaise funnel, keep the light source the same distance from the top of the funnel and keep it for the same amount of time, e.g. 2 days.