With vs In. Which one is the appropriate for the following situation?

Which one of the following is grammatically correct?
There is a failure in / with the sensor.


Solution 1:

In this context With is a more generic way of saying that there is a failure. In implies there is a specific failure within the sensor, for example the sensor is made of multiple components and one of those failed.