So I finally got my hands on this broken active DEF tank for 2012 X535D. It is not a big deal to be opened, same as a gas tank screw-in cap on the top. It has 2 connectors with 8 wires altogether. 2 of them appear to be for a heater, 2 are for the temp sensor and 2 are for the level sensor and the other 2 probably for the urea quality sensor(someone please check the wiring diagrams). On the big connector 2 thick wires appear to be for the heater (you can see it on the bottom of the pot which goes inside the tank) and the other 2 are the temp sensor. The other 2 sensors are on the small connector.
I didnt have my thermometer with me, so I did a very rough measurments of the temp sensor resistance. So at around 65F it was 11k and went down to 7k when it was exposed on the sun for some time, roughly 85F.
I am sure a very simple emulator for the level and temp sensors could be made.
On to the pictures: