That's the low version cluster (02/1988 - 08/1990 - 520i, 524td - Maker: Motometer).
That has 2 rechargeable batteries inside for service intervals. Akku VARTA 500 RST 048 can be replaced by NiCd AA 1.2V approx. 700mAH http://www.netforce-player.de/pet-ra...AGEN/KI/KI.htm
It could be that the batteries ran out and damaged the circuit board. You have to disassemble it and check, shown here
http://www.netforce-player.de/pet-ra.../KI/KI_REP.htm
Disconnect the car battery before you start removing the cluster or removing the steering wheel, otherwise your airbag light will come on.
But as it started after you reoplaced the engine top, it could also be that you installed the wrong temperature sensor! The temperature sensors for the cluster and the DME are different! What is your car VIN? What part number did you install for the sensor? What built yar is the car? Which country version? Which engine?
518i M40
520i M20
520i M50
524td M21
525i M20
525i M50
530i M30
535i M30
M5 3.6 S38
Check here for the sensor with your VIN http://bmwfans.info/
It is always important that we know the model, engine, built month and year, automatic transmission or manual gear, country version, otherwise it is difficult to give a detailed reply.