Are there any electro-chemical sensors available to measure nutrient contents of soil?
You have pH and humidity sensors for Arduino, but "soil fertility" is an unprecise term.

If you do a web search, you will find results for a number of devices that claim to measure soil fertility. I am highly suspect of these devices. Even laboratory testing cannot tell you accurately how fertile your soils are because of the methods used. Most labs test for the presence of inorganic chemals, including nitrogen, potassium, phosphorous and an array of other nutrients plants need. What most of them do not or cannot measure is the amount of plant-available nutrients in the soil. It takes a host of soil organisms to make nutrients in the soil available to plants. If those organisms are not present or are low in numbers, it is difficult for plants to take up nutrients. Fertilizers only exacerbate the problem because they kill off soil organisms, especially mycorrhizal fungi, throwing the entire ecology of the soil out of kilter. There are a couple of laboritories out there that test for soil biology and some nutrients.

Soil is hard. There is a lot of things in soil (compactness, unwanted chemicals/elements, microbes) that can affect the fertility, even if you have the right nutrients in it.

For hydroponic (not your case), you have cheap handheld EC/TDS meters. The pH and EC of your reservoir is all you need to measure the fertility of your water solution.

Go hydro and stop worrying about your tomatoes.