The biotic factors can be defined as those living elements of an ecosystem that affects the other members of the ecosystem and also shapes it. The examples include animals and plants. The abiotic factors can be defined as those elements which are non-living and have effect on the other components of the ecosystem. The examples include water, air, soil etc.
A rabbit having long ears in order to disperse heat is adapting to the abiotic factor, i.e. the heat.
The spines of cactus are an adaptation to another abiotic factor, water.
The bright red color of the petunia is to attract the hummingbirds for pollination. They are adapting to the biotic factor (hummingbird).
The blending ability of stick-bugs to hide in the trees is an adaptation to the biotic factor (predators).
The diving ability of the moth is an adaptation to the biotic factor bat, in order to escape predation.
The adaptation of the lizard to sun itself on the rock in order to stay warm is in response to an abiotic factor (heat).