IC Identification

I need some help locating replacements for the following ICs. I’ve also included a picture of the circuit. Google searches haven’t returned anything similar to this.

This is for an automatic trash bin lid. You can either wave your hand over a sensor or push the “Open” indicator and the lid is supposed to open for about 10 seconds before automatically closing. As of right now triggering the lid only opens it about 2 inches and it immediately closes.

Circuit:

IC A - it’s a 20 pin SMD, but I cannot find and identifying labels

IC B - 8 pin SMD, all I can make out is a 'M" and ‘1727H’

IC C - 8 pin SMD. I do see this is a LM358. I cannot post more than 3 images or I’d include it here.

For ICs A and B - if I remove them from the board will there be any labels on the bottom?

Unfortunately it appears the surface is to damaged to read the markings. Sometimes there are markings on the bottom. The 1727H marking is most likely the date code, and the actual part identifier is the first line that is scratched off.

Here is a link to the LM358:
Instrumentation, Op Amps, Buffer Amps | Amplifiers | Linear | Electronic Components Distributor DigiKey

I was hoping a 20 pin smd IC isn’t to common and there aren’t to many out there - but I guess I’m not that lucky.

I’m going to get my rework station out and take the chips off. Hopefully there’s more info on the bottom of the chips.

Thanks for the input.

It is uncommon for markings on the bottom of devices to be pertinent to device identification.

Also, that 20-pin device is most likely a microcontroller of some sort. As a programmable device, the information they contain is as relevant as the device itself; if one looses/breaks a USB thumb drive for example, one cannot simply buy a replacement and expect it to contain the same information as the one that was compromised.