The dtostrf() function (to convert float to string) is not included in the standard arduino.h in the D21G core.
This is probably due to memory size considerations, or it could just be added.
Anyhow, after a bit of search I solved this issue by adding the correct include:
Hope this is helpful
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!