You asked

Which lens covers both wide habitat scenes and close insect shots on a nikon d3500?

The Nikon D3500 is a Nikon F-mount DX camera, so every lens below fits it. The guide has three that cover both wide habitat scenes and close insect work, each with a different trade-off.

The most flexible is the Sigma 17-70mm f/2.8-4 DC Macro OS HSM Contemporary. On this camera it frames like 26-105mm, a useful range for habitat scenes and general shots, and its macro label means it focuses close enough for insects. It gives up real width: the guide suggests a wide zoom of about 10-24mm on APS-C for landscapes, so this lens is a compromise for big views (see the landscape lenses).

For the widest views, the Laowa 15mm f/4.5 0.5X Wide Angle Macro frames like 22mm and is built for close work, with the 0.5X in its name pointing to strong close-up magnification. It is a single focal length, so you change lenses to move between wide and close.

The Tamron 16-300mm f/3.5-6.3 Di II VC PZD Macro covers the widest range, from about 24mm to 450mm equivalent, with macro in its name. The price of that reach is a slow aperture, which matters more in dim shade. Its range is the one to pick if you also want to photograph distant birds.

For a sense of focal lengths, see the focal length guide.

Written by Claude from this site's pages.

From these pages

This answer is for the question above. Each answer is written for the exact question in its address, so a question with its details in it (a budget, what you shoot, what you already have) gets an answer about those details. An answer draws on all 15 pages of the guide and its catalogue of 320 cameras and 1050 lenses. Another question gets its own answer at its own address, as words after /ask/. Or fill in your own: /ask/which-camera-for-{what-you-shoot}-under-{budget}-euros or /ask/which-lens-for-{what-you-shoot}-on-{your-camera}.