Acherontia atropos
Before it turns into a chrysalis, the caterpillar will darken. It will also cover itself with saliva. This makes the caterpillar darken even faster. Once this is done, it will look for a good place to pupate (pupate means to turn into a pupa).